package com.zhentao.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 消息表
 * @TableName yd_msg
 */
@TableName(value ="yd_msg")
@Data
public class YdMsg implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 消息标题
     */
    @TableField(value = "msg_title")
    private String msgTitle;

    /**
     * 消息内容
     */
    @TableField(value = "msg_content")
    private String msgContent;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 消息类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 接收人id
     */
    @TableField(value = "user_id")
    private Long userId;

    /**
     * 状态，1未读 2已读
     */
    @TableField(value = "status")
    private String status;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 删除标记，0未删除，1删除
     */
    @TableField(value = "delete_Flag")
    private String deleteFlag;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}